package com.carleasoft.mps.cms.business.train.bean.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: yangHao
 * @createDate:2023/7/7
 * @description:
 */
@Data
public class   CarExcelVo implements Serializable {

    /**
     * 用车单位
     */
    @Excel(name = "用车单位")
    @NotNull(message = "用车单位不能为空")
    private String partName;

    /**
     * 带车干部
     */
    @NotNull(message = "带车干部不能为空")
    @Excel(name = "带车干部")
    private String cadre;

    /**
     * 用车类型
     */
    @Excel(name = "用车类型",replace ={"长途用车_1","预约长途车_2","战备训练用车_3","检查督查_4","生活保障_5","日常办公_6","营区内动车_7"} )
    @NotNull(message = "用车类型不能为空")
    private Integer carType;

    /**
     * 驾驶员名称
     */
    @Excel(name = "驾驶员姓名")
    @NotNull(message = "驾驶员姓名不能为空")
    private String driveName;


    /**
     * 驾驶员兵龄
     */
    @NotNull(message = "驾驶员军衔不能为空")
    @Excel(name = "驾驶员军衔",replace={"上将_245","中将_395","少将_397","大校_409","上校_419","中校_429","少校_439","上尉_447","中尉_457","少尉_465","一级军士长_475","二级军士长_481","三级军士长_493","一级上士_583","二级上士_585","中士_587","下士_589","上等兵_591","列兵_593"})
    private String driveYear;

    /**
     * 驾驶员行车里程
     */
    @NotNull(message = "驾驶员里程不能为空")
    @Excel(name = "驾驶员里程")
    private String driveLength;

    /**
     * 车牌号
     */
    @NotNull(message = "车牌号不能为空")
    @Excel(name = "车牌号")
    private String carCard;

    /**
     * 乘车人数
     */
    @Excel(name = "乘车人数(数字)")
    private Integer carNumber;

    /**
     * 车型
     */
    @NotNull(message = "车型不能为空")
    @Excel(name = "车型")
    private String carModelName;

    /**
     * 出车地点
     */
    @NotNull(message = "出车路线不能为空")
    @Excel(name = "出车路线")
    private String carAddress;

    /**
     * 行车距离
     */
    @Excel(name = "行车距离(km)")
    private String carLength;

    /**
     * 开始时间(yyyy-MM-dd)
     */
    @NotNull(message = "开始时间不能为空")
    @Excel(name = "开始时间(yyyy-MM-dd HH:mm:ss)", format = "yyyy-MM-dd HH:mm:ss")
    private String startTime;

    /**
     * 结束时间(yyyy-MM-dd)
     */
    @NotNull(message = "结束时间不能为空")
    @Excel(name = "结束时间(yyyy-MM-dd HH:mm:ss)", format = "yyyy-MM-dd HH:mm:ss")
    private String endTime;

    /**
     * 类别
     */
    @NotNull(message = "类别不能为空")
    @Excel(name = "类别")
    private String driveType;

    /**
     * 审批状态
     */
    @NotNull(message = "状态不能为空")
    @Excel(name = "状态",replace ={"待确认_1","已确认_2","已拒绝_3"})
    private String status;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

}
